import Taro, { Component} from '@tarojs/taro'
import propTypes from 'prop-types'
import { View,Image } from '@tarojs/components'
import {imgUrl} from '../../config'
import './components.scss'


class Zujian extends Component {
  static propTypes = {
    name: propTypes.string.isRequired
  }

//   config = {
//     navigationBarTitleText: '首页'
//   }
  constructor (props) {
    super(props)
    this.state = { 
 
     }
  }
 
  render () {
    const {name} = this.props;
    return (
      <View className='index'>
        <Image src={`${imgUrl}/pic1.png`} className='img' />
        <View className='name'>{name}</View>
      </View>
    )
  }
}

export default Zujian
